package com.ivanceras.client;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
import com.ivanceras.client.view.QuestionViewer;



public class Question implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public String text;
	public Long itemNo;
	public long questionId;
	public List<Choice> choiceList =  new ArrayList<Choice>();
	public Long questionnaireID;
	public Question(){
		
	}
	public Question(String text){
		this.text = text;
	}
	public void addChoice(String text,boolean isCorrect){
		Choice choice = new Choice(text);
		choice.itemNo = itemNo;
		choice.isCorrect = isCorrect;
		choiceList.add(choice);
	}
	public List<Choice> getChoices(){
		return choiceList;
	}
}
